package com.cangxuan.backend.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 账单实体类
 * Author: 彭伟辰
 */
@Data
@NoArgsConstructor
public class UserAmountRecord {
    private int id;
    private int userId;
    private int direction;//账单类型
    private float amount;//价格
    private LocalDateTime createTime;//交易时间
    private String remark;
    private Integer orderformId;//订单号

    public UserAmountRecord(int userId, int direction, float amount, String remark, Integer orderformId) {
        this.userId = userId;
        this.direction = direction;
        this.amount = amount;
        this.remark = remark;
        this.orderformId = orderformId;
    }
}
